<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>启动</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/static/include/css/style.css">
</head>
<body class="white-bg" style="height: 95%">

<div>
  <table class="form-table">

    <tr>
      <th>
        <span>备注/意见：</span>
      </th>
      <td>
        <textarea id="remark" style="resize: none;" rows="4" cols="20" class="form-control"></textarea>
      </td>
    </tr>
    <tr>
      <th>常用语：</th>
      <td>
        <a class="btn btn-outline btn-primary btn-sm mr5" onclick="commonWord('同意')">同意</a>
        <a class="btn btn-outline btn-primary btn-sm mr5" onclick="commonWord('请注意，情况复杂！')">请注意，情况复杂！</a>
        <a class="btn btn-outline btn-primary btn-sm mr5" onclick="commonWord('情况紧急，请尽快处理！')">情况紧急，请尽快处理！</a>
        <a class="btn btn-outline btn-primary btn-sm mr5" onclick="commonWord('驳回')">驳回</a>
      </td>
    </tr>
  </table>
</div>


<script src="/static/include/js/footer.js"></script>
<script>
  $(function () {

  })
  function commonWord(text) {
    $('#remark').val(text)
  }

  function submitHandler() {
    // var iframeObj = window.frames["iframeContent"].window
    parent.window.nowButton.opinion =  $('#remark').val()
    parent.window.nowButton.configPage = ''
    var extendConf = {
      carbonId: parent.window.carbonId
    }
    // var busData = iframeObj.getData ? iframeObj.getData() : {};
    parent.window.bpmParams = Object.assign({}, parent.window.bpmParams, {extendConf: extendConf})
    parent.window.postFn(parent.window.nowButton)
  }
</script>
</body>
</html>
